-- GENERATED SPELL FOR [The Husk] --


function spell0_1851(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(17230,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1851', 602, 1)
end

function spell1_1851(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1851', 8000, 1)
end

function Sorts_1851(pUnit, Event)
local choix_sorts_1851 = math.random(0, 1)
if choix_sorts_1851 == 0 then
pUnit:RegisterEvent('spell0_1851', 1, 1)
end
if choix_sorts_1851 == 1 then
pUnit:RegisterEvent('spell1_1851', 1, 1)
end
end

function mob1851_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1851', math.random(1500, 3000), 1)
end

function mob1851_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1851_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1851_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1851, 1, 'mob1851_Action')
RegisterUnitEvent(1851, 2, 'mob1851_Leave')
RegisterUnitEvent(1851, 3, 'mob1851_Kill')
RegisterUnitEvent(1851, 4, 'mob1851_Die')
